package com.woniu.book.mapper;

import com.woniu.book.domain.Booking;
import com.woniu.book.vo.BookingListVo;
import com.woniu.book.vo.BookingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.awt.print.Book;
import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface BookingMapper extends BaseMapper<Booking> {


    int isPay(Long bookId);

    void cancelBook(Long bookId);

    BookingVo selectBookById(Long bookingId);

    List<Booking> selectBookByIds(@Param("ids") List<Long> ids);

    Integer updateBookingStatus(Long bookingId);

    Booking selectBookByIdForFinance(Long bookId);

    List<BookingListVo> getBooksById(@Param("id") Long id);

    void remove(@Param("id") Long id);
}
